package cn.zkf.bean;

import org.springframework.stereotype.Component;

/**
 * @program: spring
 * @ClassName User
 * @description:
 * @author: zhangkefei
 * @create: 2021-04-07 13:42
 * @Version 1.0
 **/
@Component
public class User {
	private String name = "zkf";
	static {
		System.out.println("=====User 被加载了=====");
	}

	public User() {
		System.out.println("用户"+this.name+"被实例化了");
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}
}
